<!-- 个人中心 -->
<template>
	<view v-if="chat_flag == 1">
		<u-navbar :is-back="true" title="提现记录"></u-navbar>
		<order-list ref="cash"></order-list>
		<user-auth></user-auth>
	</view>
</template>

<script>
	import {mapState} from 'vuex';
	import orderList from "./order-list.vue"; // 推荐
	export default {
		components: {
			orderList,
		},
		data() {
			return {
				user: {
					nickName: '未知',
					signName: 'TA很神秘，什么也没留下'
				},
			}
		},
		onLoad() {
			
		},
		onReachBottom() {
			this.$refs.cash.load();
			console.log('到底');
		},
		computed: {
			...mapState(['vuex_user','chat_flag']),
		},
		methods: {
			getUserInfo() {
				this.$u.get('/system/user/getMyInfo').then(res => {
					this.user = res.user;
					this.$store.commit('setUser', this.user);
					this.$store.commit('setNoticeNum', this.user.giveNewNum+this.user.commentNewNum);
				})
			},
			editBtn() {
				this.judgeLogin(() => {
					this.$u.route({
						url: 'packgeMine/pages/me/edit',
					});
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	
</style>
